package com.yxq.mdt.app.modules.socialcontact.adapter;


import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yxq.mdt.app.R;
import com.yxq.mdt.app.glide.GlideHelper;
import com.yxq.mdt.app.modules.socialcontact.bean.MainSocialCircleBean;

import java.util.List;

public class MainSocialCircleAdapter extends BaseQuickAdapter<MainSocialCircleBean.ListBean, BaseViewHolder> {
    public MainSocialCircleAdapter(int layoutResId, @Nullable List<MainSocialCircleBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MainSocialCircleBean.ListBean item) {
        GlideHelper.setLoadRoundImage(mContext, item.getLogo(), R.mipmap.head_icon, helper.getView(R.id.circle_list_image));
        helper.setText(R.id.circle_list_name, item.getGroupname());
        helper.setText(R.id.circle_list_introduce, item.getDescription());
        helper.setText(R.id.circle_list_update, "今日动态:" + item.getDynamicNum());
    }

}
